<?php
declare (strict_types=1);

namespace app\time\controller;

use app\common\tool\Result;
use think\Response;
use app\common\model\OrderTemporary;

class Order
{
    /**
     * 每分钟执行
     * 订单超时未支付自动取消
     */
    public function autoCancel() :Response
    {
        return Result::fastReturn(OrderTemporary::autoCancel());
    }

    /**
     * 每分钟执行
     * 订单定时确认收货
     */
    public function autoReceipt() :Response
    {
        return Result::fastReturn(OrderTemporary::autoReceipt());
    }

    /**
     * 每分钟执行
     * 订单确认收货后（7天）的后续消费区奖励，VIP奖励等
     */
    public function orderReward() :Response
    {
        return Result::fastReturn(OrderTemporary::orderReward());
    }

    /**
     * 每分钟执行
     * 订单确认收货后(7天)的后续订单利润进入分红池
     */
    public function orderPooled() :Response
    {
        return Result::fastReturn(OrderTemporary::orderPooled());
    }



}